#include <iostream>
int main()
{
    
    using namespace std;
    cout << "hello cast:" << endl; 
    char ch = 'Z';
    //C++形式的cast
    cout << "the code of ch is " << int(ch) << endl;
    //推荐的cast
    int int_ch = static_cast <int>(ch);
    cout << "the int_cn after static_cast is " << int_ch << endl;
    return 0;
}
